Skip to content

Fixed required check#111

Merged
niels-nijens merged 4 commits into
nijens:mainfrom
jvdhehvg:fix-required-query-parameter-check
Jul 3, 2026
Merged

Fixed required check#111
niels-nijens merged 4 commits into
nijens:mainfrom
jvdhehvg:fix-required-query-parameter-check

Conversation

@jvdhehvg

@jvdhehvg jvdhehvg commented Jul 1, 2026

Copy link
Copy Markdown
Contributor
  1. Fixed a problem in \Nijens\OpenapiBundle\Validation\RequestValidator\RequestParameterValidator::validateQueryParameter where a warning would be triggered if $parameter did not have the required property.
  2. Normalize booleanish query parameters in RequestParameterValidator

…ator\RequestParameterValidator::validateQueryParameter
@jvdhehvg jvdhehvg changed the title Fixed required check in… Fixed required check in Jul 1, 2026
@jvdhehvg jvdhehvg marked this pull request as ready for review July 1, 2026 13:29
@jvdhehvg jvdhehvg changed the title Fixed required check in Fixed required check Jul 1, 2026

@niels-nijens niels-nijens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I guess this scenario was missed.

I think it might be better to make use of the getBoolean method in from ParameterBag. This also tests for other boolean values.

Comment thread src/Validation/RequestValidator/RequestParameterValidator.php Outdated
jvdhehvg and others added 2 commits July 2, 2026 15:53
Co-authored-by: Niels Nijens <nijens.niels@gmail.com>
@jvdhehvg jvdhehvg requested a review from niels-nijens July 2, 2026 13:59

@niels-nijens niels-nijens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

@niels-nijens niels-nijens merged commit a996dcc into nijens:main Jul 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants